home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / scottman / form4.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1995-09-06  |  2.0 KB  |  79 lines

  1. VERSION 2.00
  2. Begin Form Form4 
  3.    BackColor       =   &H00C0C0C0&
  4.    BorderStyle     =   1  'Fixed Single
  5.    Caption         =   "Rename"
  6.    ClientHeight    =   1755
  7.    ClientLeft      =   1680
  8.    ClientTop       =   7575
  9.    ClientWidth     =   4185
  10.    Height          =   2160
  11.    Left            =   1620
  12.    LinkTopic       =   "Form4"
  13.    MaxButton       =   0   'False
  14.    MinButton       =   0   'False
  15.    ScaleHeight     =   1755
  16.    ScaleWidth      =   4185
  17.    Top             =   7230
  18.    Width           =   4305
  19.    Begin CommandButton Command2 
  20.       Caption         =   "Cancel"
  21.       Height          =   615
  22.       Left            =   2280
  23.       TabIndex        =   3
  24.       Top             =   960
  25.       Width           =   1695
  26.    End
  27.    Begin CommandButton Command1 
  28.       Caption         =   "OK"
  29.       Height          =   615
  30.       Left            =   240
  31.       TabIndex        =   2
  32.       Top             =   960
  33.       Width           =   1455
  34.    End
  35.    Begin TextBox Text1 
  36.       Height          =   285
  37.       Left            =   1320
  38.       MaxLength       =   7
  39.       TabIndex        =   1
  40.       Top             =   240
  41.       Width           =   2655
  42.    End
  43.    Begin Label Label1 
  44.       BorderStyle     =   1  'Fixed Single
  45.       Caption         =   "Name"
  46.       Height          =   285
  47.       Left            =   240
  48.       TabIndex        =   0
  49.       Top             =   240
  50.       Width           =   975
  51.    End
  52. Sub Command1_Click ()
  53. If z = 1 Then
  54.   form1.Label1.Caption = text1.Text
  55. End If
  56. If z = 2 Then
  57.   form1.Label2.Caption = text1.Text
  58. End If
  59. If z = 3 Then
  60.   form1.Label3.Caption = text1.Text
  61. End If
  62. If z = 4 Then
  63.   form1.Label4.Caption = text1.Text
  64. End If
  65. If z = 5 Then
  66.   form1.Label5.Caption = text1.Text
  67. End If
  68. If z = 6 Then
  69.   form1.Label6.Caption = text1.Text
  70. End If
  71. If z = 7 Then
  72.   form1.Label7.Caption = text1.Text
  73. End If
  74. form4.visible = false
  75. End Sub
  76. Sub Command2_Click ()
  77. form4.Visible = False
  78. End Sub
  79.